home *** CD-ROM | disk | FTP | other *** search
/ Hot Super Models / Hot Super Models.iso / dos / tif / viewer.h < prev   
C/C++ Source or Header  |  1992-07-19  |  2KB  |  64 lines

  1. typedef enum
  2. {
  3.   FMT_UNKNOWN,            /* unknown format */
  4.   FMT_GIF,            /* GIF format */
  5.   FMT_JFIF,            /* JFIF format */
  6.   FMT_PPM,            /* PPM/PGM (PBMPLUS formats) */
  7.   FMT_RLE,            /* RLE format */
  8.   FMT_TARGA,            /* Targa format */
  9.   FMT_TIFF            /* TIFF format */
  10. } IMAGE_FORMATS;
  11.  
  12. typedef struct moh_files_hell
  13. {
  14.   char name[100];        /* for path information as well */
  15.   IMAGE_FORMATS type;        /* image type */
  16.   int selected;
  17. } Files;
  18. #define MaxWidth        800
  19. #define VERSION         "1.2" 
  20. #define PROGNAME "Hiview"
  21. #define MAXROWREAD      8
  22. #define prints(x,y,a,args) {sprintf args;mr_prints(x,y,a,PB);}
  23. /* to use prints, one would issue e.g. prints(x,y,attr,(PB,"hello %d\n",hell));
  24. */
  25. #define MAXFILES                200    /* max files to allocate space for */
  26. #define SC_HEADER        3
  27. #define SC_FOOTER        3
  28. #define SC_HEIGHT        25
  29. #define SC_WIDTH        80
  30. #define SC_COLS            5
  31. #define SC_COL_WIDTH    15
  32. #define UP                      584
  33. #define DOWN                    592
  34. #define RIGHT                   589
  35. #define LEFT                    587
  36. #define ESC                27
  37. #define RETURN            13
  38. #define FILE_FCOLOR        LIGHTGRAY
  39. #define FILE_BCOLOR             BLACK
  40. #define FILE_SELECT             GREEN
  41. #define BORDER_FCOLOR             BLACK
  42. #define BORDER_BCOLOR             MAGENTA
  43. #define MESSAGE_FCOLOR          LIGHTGRAY
  44. #define MESSAGE_BCOLOR          BLACK
  45. #define MESSAGE_HIGHLIGHT       RED
  46. #define MESSAGE_HEADER          LIGHTBLUE
  47. #define MAXDRIVE 4
  48. #define MAXDIR  64
  49. #define MAXFILE  10
  50. #define MAXEXT   5
  51. #define TIMESLICE 0.2
  52. #define UTIMESLICE 200000
  53.  
  54. #ifndef EXIT_FAILURE
  55. #define EXIT_FAILURE 1
  56. #endif
  57. #ifndef ulong
  58. #define ulong unsigned long
  59. #endif
  60.  
  61. #define InflateBase     19
  62. #define ColorBase       22
  63. #define BaseDiff        3    /* ColorBase-InflateBase */
  64.